import request from '@/utils/request'

// 固定写法  ！！！  当get请求的时候用 params
export function unitPage(params) {
  return request({
    url: '/cardlist/list/page',
    method: 'get',
    params
  })
}

export function delById(params) {
  return request({
    url: '/cardlist/list/del',
    method: 'post',
    params
  })
}

export function findunitById(params) {
  return request({
    url: '/manager/clue/findById',
    method: 'get',
    params: {
      id: params
    }
  })
}
export function delBatch(params) {
  return request({
    url: '/manager/clue/delBatch',
    method: 'get',
    params: {
      ids: params
    }
  })
}
export function addMeasure(data) {
  return request({
    url: '/cardlist/list/add',
    method: 'post',
    data
  })
}
export function updateMeasure(data) {
  return request({
    url: '/cardlist/list/update',
    method: 'post',
    data
  })
}

